/*
 * Copyright (c) 2012,东方口岸科技有限公司
 * All rights reserved.
 * 文件名称：NodeRelInfoService.java
 * 摘    要：
 * 版本：1.0
 * 作    者：fengzhiyong
 */
package com.cneport.transfer.router.support.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.cneport.transfer.router.model.NodeRelation;
import com.cneport.transfer.router.support.mapper.NodeRelationMapper;

@Component
public class NodeRelationService {
    /**
     *@CreateDate:2012-7-10
     *@Description:
     */
    @Autowired
    private NodeRelationMapper nodeRelationMapper;

    public List<NodeRelation> selectNodeRelation() {
        return nodeRelationMapper.selectNodeRelation();
    }
    
	public List<NodeRelation> queryNodeRelInfo(NodeRelation noderelation){
		return nodeRelationMapper.queryNodeRelInfo(noderelation);
	}
	
	public int conutNodeRelInfo(NodeRelation noderelation){
		return nodeRelationMapper.countNodeRelInfo(noderelation);
	}
	
	public NodeRelation getNodeRelInfo(NodeRelation noderelation){
		return nodeRelationMapper.getNodeRelInfo(noderelation);
	}
	
	public int updateNodeRelInfo(NodeRelation noderelation){
		return nodeRelationMapper.updateNodeRelInfo(noderelation);
	}
	
	public int addNodeRelInfo(NodeRelation noderelation){
		return nodeRelationMapper.addNodeRelInfo(noderelation);
	}
	
	public void insertNodeRelInfo(NodeRelation noderelation){
		nodeRelationMapper.insertNodeRelInfo(noderelation);
	}
	public int deleteNodeRelInfo(NodeRelation noderelation){
		return nodeRelationMapper.deleteNodeRelInfo(noderelation);
	}
}
